package 数据结构上

object CollectionDemo01 {
  def main(args: Array[String]): Unit = {

    val str: String = "hello"
    for (item <- str) {
      println(item)
    }

    var arr2 = Array(1, 2, "s")
    for (item <- arr2) {
      println(item)
    }
    arr2.foreach(println)
  }

}
